﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Text;
using System.Configuration;
using mLabJezicneVarijante;
using System.Windows.Forms;
using System.Drawing;

namespace mLabControls.Buttons
{
    public class btnOK : mLabControls.mLabButton
    {
        public btnOK()
            : base()
        {
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.Prevedi);
        }

        protected void Prevedi(object sender, PaintEventArgs e)
        {
             try
            {
                this.Text = SysLabelaJezikDAO.GetTextByKey(TranslateGlobalsClass.Language, "OK", null);
            }
            catch (Exception excp)
            {
                this.Text = SysLabelaJezikDAO.GetTextByKey("en", "OK", null);
            }
        }
    }
}
